package com.yufei.infoExtractor.exportor;

import java.util.List;
import java.util.Map;

import com.yufei.infoExtractor.exception.TaskResultExportException;
import com.yufei.infoExtractor.pfw.entity.Entity;
import com.yufei.infoExtractor.pfw.entity.News;
import com.yufei.infoExtractor.pfw.mongodb.DataRepository;
import com.yufei.infoExtractor.util.AppUtil;
import com.yufei.infoExtractor.util.FileUtil;

/**
 * @author jasstion
   2012-12-13
   用于将对象转成Xml格式的文件并保存到本地文件夹
 *
 */
public class XmlFileExportor implements DataExportor {

	









	@Override
	public void exportData(List<? extends Entity> needSavedList,
			String destinationFoler,Class entityClass) throws TaskResultExportException{
		// TODO Auto-generated method stub
		
		FileUtil.makeFileForTaskResult(needSavedList, destinationFoler, entityClass);

	}
	
}
